package com.google.code.jmarias.server.tcp;

import com.google.code.jmarias.common.action.AbstractSignedMessage;
import java.util.Queue;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 * @author Ondrej Michal
 */
public class RemoteContactableUser extends AbstractContactableUser {

    private static Log log = LogFactory.getLog(RemoteContactableUser.class);

    /** Fronta pro akce zasilane uzivateli */
    private Queue<AbstractSignedMessage> serverToClientActions;

    public RemoteContactableUser(Queue<AbstractSignedMessage> serverToClientActions) {
        this.serverToClientActions = serverToClientActions;
    }

    @Override
    public void sendMessage(AbstractSignedMessage message) {
        serverToClientActions.offer(message);
    }

}
